<?php
require_once 'demo/e_log.php';

class m_Log extends e_Log {
	
    function __construct()
    {
        parent::__construct();
    }
	
    /*
     * 保存日志
     */
    function write($user_id, $msg,$username='', $type='UNDEFINED'){
        return $this->insert(
            array(
                'log_type' => $type,
                'log_content' => $msg,
                'user_id'	=>	$user_id,
                'username'	=>	$username
            )
        );
    }
}
?>